package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Ticket;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TicketMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Ticket record);

    Ticket selectByPrimaryKey(Long id);

    List<Ticket> selectAll();

    int updateByPrimaryKey(Ticket record);

    List<Ticket> listByDestId(Long ajaxDestId);

    List<Ticket> listByDestIdAndTagId(@Param("destId") Long destId, @Param("tagId") Long tagId);

    List<Ticket> listTop4(Long destId);
}